<template>
  <div class="homes">
      <div class="search">
                  <van-icon name="scan" />
                  <van-search
                    v-model="searchValue"
                    shape="round"
                    background="#2ba5d9"
                    placeholder="请输入搜索关键词"
                  />
                  <van-icon name="chat-o" badge="3" />
              </div>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item
        ><img
          src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1608474876172&di=a374330e5899c5c03448a41102a8f64c&imgtype=0&src=http%3A%2F%2Fcrawl.ws.126.net%2F21da029d86f8e6b2ab6dd7cf81348b1d.jpg"
          alt=""
      /></van-swipe-item>
      <van-swipe-item
        ><img
          src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1608474927471&di=2e0e66ec298fa98cdac9597f08635efb&imgtype=0&src=http%3A%2F%2Fimages.china.cn%2Fsite1000%2F2020-03%2F17%2F9207597b-c814-4746-867c-2d81b560a45c_batchwm.jpg"
          alt=""
      /></van-swipe-item>
      <van-swipe-item
        ><img
          src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1608475021133&di=090a8c57d9fa60eda2ab791b93ad0fdb&imgtype=0&src=http%3A%2F%2Fwww.cn-healthcare.com%2Fupload%2Fimage%2F2013-07-11%2Fff8080813fc676a2013fcb4e43a4000f.jpg"
          alt=""
      /></van-swipe-item>
      <van-swipe-item
        ><img
          src="https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3022964927,1825859110&fm=26&gp=0.jpg"
          alt=""
      /></van-swipe-item>
    </van-swipe>
    <!-- 快捷查询 -->
    <div class="quick">
      <dl class="yan1" @click="goto">
        <dt><i class="iconfont icon-shandian"></i></dt>
        <dd>
          <h3>快速提问</h3>
          <p>智能匹配医生</p>
        </dd>
      </dl>
      <dl class="yan2" @click='drugShops'>
        <dt><i class="iconfont icon-jiaonang"></i></dt>
        <dd>
          <h3>开药门市</h3>
          <p>快速开方送药上门</p>
        </dd>
      </dl>
    </div>
    <!-- 二级导航 -->
    <div class="nav">
      <dl @click="goto">
        <dt><i class="iconfont icon-yuyueguahao"></i></dt>
        <dd>预约挂号</dd>
      </dl>
      <dl @click="zhao">
        <dt><i class="iconfont icon-zhaoyisheng"></i></dt>
        <dd>找到医生</dd>
      </dl>
      <dl>
        <dt><i class="iconfont icon-kangyi"></i></dt>
        <dd>抗疫专区</dd>
      </dl>
      <dl>
        <dt><i class="iconfont icon-dianhua"></i></dt>
        <dd>电话问诊</dd>
      </dl>
    </div>
    <!-- 竖向滚动 -->
    <div class="active">
          <img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1608475419899&di=c6967f5bb20ffc4452c1764fb2b77219&imgtype=0&src=http%3A%2F%2Fwww.hbwmw.gov.cn%2Fyw%2F201405%2FW020140509392405010561.jpg" alt="">
        </div>
    <!-- 特色科室 -->
    <div class="unusual">
      <h3><span class="lef">特色科室</span><i class="lefl">查看全部&gt;</i></h3>
      <div class="tan">
        <div class="tan1">
                <b>18元战·男言之隐</b><br/>
                <br/>
                <span>做男人 更持久</span><br/>
                <br/>
                <p>查看详情&gt;</p>
        </div>
        <div class="tan2">
          <b>儿童常见疾病</b><br/>
          <br/>
          <span>父到换季宝宝必备</span>
        </div>
        <div class="tan3">
          <b>名医美肤祛痘</b><br/>
          <br/>
          <span>减肥/术后/慢病/营养品</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      searchValue:''
    }
  },
  methods: {
    goto(){
      this.$router.push('/consult')
    },
    gogo(){
      this.$router.push('/home/mce')
    },
    zhao(){
      this.$router.push('/detail')
    },
    drugShops(){
      this.$router.push('/drupShop')
    }
  },
};
</script>

<style scoped>
.my-swipe {
  border-radius: 0.05rem;
  margin: 0.1rem;
}
.search{
    width: 100%;
    height: 0.5rem;
    display: flex;
    background: #2ba5d9;
    justify-content: space-around;
    align-items: center;
    color: #fff;
    position: sticky;
    z-index: 99;
    left: 0;
    top: 0;
  }
  .van-search{
   height: 0.5rem;
   width: 70%;
  }
   .van-icon{
   font-size: 26px;
  }
.homes .my-swipe .van-swipe-item {
  color: #fff;
  font-size: 0.2rem;
  text-align: center;
  border-radius: 0.05rem;
}
.my-swipe .van-swipe-item img {
  height: 2rem;
  border-radius: 0.05rem;
  width: 100%;
}
.active{
  width: 100%;
}
.active img{
    width: 92%;
    height: 1.2rem;
    display: block;
    margin: 0.1rem auto;
    border-radius: 20px; 
}
.unusual .lef{
  margin-left: 0.2rem;
  font-size: 16px;
}
.unusual .lefl{
  margin-right: 0.2rem;
}
.xiaotu img{
  font-size: 0.2rem;
  margin-right: 0.1rem;
}
.icon-saomiao{
  color: rgb(0, 140, 255);
  font-size: 0.2rem;
  margin-right: 0.1rem;
}
.icon-xiaoxi21{
  color: rgb(0, 140, 255);
  font-size: 0.2rem;
  margin-left: 0.12rem;
}
.icon-shandian{
  color: #fff;
  font-size: 0.2rem;
}
.icon-jiaonang{
  color: #fff;
  font-size: 0.2rem;
}
.icon-yuyueguahao{
  color: rgb(0, 140, 255);
  font-size: 0.2rem;
}
.icon-zhaoyisheng{
  color: rgb(0, 140, 255);
  font-size: 0.2rem;
}
.icon-kangyi{
  color: rgb(0, 140, 255);
  font-size: 0.2rem;
}
.icon-dianhua{
  color: rgb(0, 140, 255);
  font-size: 0.2rem;
}
.icon-xinzang{
  color: rgb(0, 140, 255);
  font-size: 0.2rem;
}
.shu{
  width: 100%;
  background: rgb(255, 241, 231);
  margin-top: 0.1rem;
}
.shu p b{
  margin: 0.1rem;
}
input {
  margin-bottom: 0.13rem;
  width: 80%;
  height: 0.3rem;
  border-radius: 0.15rem;
  font-size: 0.16rem;
  outline: none;
  border: none;
  text-indent: 2em;
}
.quick {
  width: 100%;
  height: 1rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.quick dl {
  color: #fff;
  width: 45%;
  height: 0.8rem;
  border-radius: 0.1rem;
}
.quick .yan1{
  background: rgb(91, 174, 241);
}
.quick .yan2{
  background: rgb(98, 231, 142);
}
.quick dl dt {
  width: 0.5rem;
  height: 0.5rem;
}
.quick dl dt i {
  position: relative;
  top: 0.3rem;
  left: 0.1rem;
}
.quick dl dd {
  line-height: 0.4rem;
}
.quick dl dt,
dd {
  float: left;
}
.nav {
  width: 100%;
  height: 0.5rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.nav dl dt{
 margin: 0 0.1rem;
} 
.nav dl dt {
  width: 0.3rem;
  height: 0.3rem;
} 
.unusual {
  width: 100%;
}
.unusual h3 {
  display: flex;
  justify-content: space-between;
  line-height: 0.5rem;
  align-items: center;
}
.unusual h3 i {
  font-style: normal;
  font-weight: 300;
  font-size: 0.12rem;
  
}
.unusual .tan{
  width: 100%;
  height: 1.8rem;
}
.unusual .tan .tan1{
  border-radius: 0.1rem;
  width: 48%;
  height: 1.75rem;
  background: url('https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1520821609,4097703303&fm=26&gp=0.jpg');
  margin-top: 0.05rem;
  float: left;
  margin-left: 0.1rem;
}
.unusual .tan .tan1 b{
  font-size: 0.2rem;
}
.unusual .tan .tan1 p{
  color: rgb(163, 163, 163);
  margin-top: 0.05rem;
}
.unusual .tan .tan1 p{
  width: 0.6rem;
  height: 0.2rem;
  background: rgb(49, 144, 173);
  text-align: center;
  border-radius: 0.1rem;
  color: #fff;
  align-items: center;
  line-height: 0.2rem;
}
.unusual .tan .tan2 b{
  font-size: 0.2rem;
}
.unusual .tan .tan2 p{
  color: rgb(163, 163, 163);
}
.unusual .tan .tan3 b{
  font-size: 0.2rem;
}
.unusual .tan .tan3 p{
  color: rgb(163, 163, 163);
}
.unusual .tan .tan2{
  border-radius: 0.1rem;
  width: 45%;
  height: 0.85rem;
  background: url('https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3360690627,2966600590&fm=26&gp=0.jpg');
  margin-top: 0.05rem;
  float: right;
  margin-right: 0.1rem;
}
.unusual .tan .tan3{
  border-radius: 0.1rem;
  width: 45%;
  height: 0.85rem;
  background: url('https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2690097277,2363798149&fm=26&gp=0.jpg');
  margin-top: 0.05rem;
  float: right;
  margin-right: 0.1rem;
}
</style>
